import request from "@/utils/request";

// // 发布论坛
// export function postingForums(data) {
//   return request({
//     url: "/system/forum/forum",
//     method: "post",
//     data: data,
//   });
// }

// 查询个人信息
export function getHomePageInfo(query) {
  return request({
    url: "/system/forum/forum/personalFile",
    method: "get",
    params: query,
  });
}

// 查询个人主页我的评论
export function getHomePageMyComment(query) {
  return request({
    url: "/system/forum/forum/personalFile/comment",
    method: "get",
    params: query,
  });
}

// 获取点赞过的论坛列表
export function getHomePageMyUpVoteComment(query) {
  return request({
    url: "/system/forum/forum/personalFile/like",
    method: "get",
    params: query,
  });
}

// 获取消息数量(定时)
export function getMessageNum(query) {
  return request({
    url: "/system/quantity/userQuantity/"+query,
    method: "get",
  });
}

// 获取消息列表
export function getMessageList(query) {
  return request({
    url: "/system/information/information/list",
    method: "get",
    params: query,
  });
}

// 查询他人的个人主页
export function getOtherHomePageInfo(query) {
  return request({
    url: "/system/forum/forum/personalFile/other",
    method: "get",
    params: query,
  });
}
